package com.wry.wallet.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

import com.wry.wallet.enums.DealStatusEnum;
import com.wry.wallet.enums.DealTypeEnum;
import lombok.Data;

/**
* <h1>  </h1>
*
* @author wry
* @since 2023.04.01
*/
@Data
@TableName(value = "account_flow")
public class AccountFlow implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 交易账号
     */
    @TableField(value = "deal_account_number")
    private String dealAccountNumber;

    /**
     * 交易金额
     */
    @TableField(value = "deal_amount")
    private BigDecimal dealAmount;

    /**
     * 交易流水号
     */
    @TableField(value = "deal_flow_number")
    private String dealFlowNumber;

    /**
     * 交易类型
     */
    @TableField(value = "deal_type")
    private DealTypeEnum dealType;

    /**
     * 交易状态
     */
    @TableField(value = "deal_status")
    private DealStatusEnum dealStatus;

    /**
     * 描述
     */
    @TableField(value = "deal_desc")
    private String dealDesc;

    /**
     * 交易创建时间
     */
    @TableField(value = "deal_created_at")
    private LocalDateTime dealCreatedAt;
}